package com.knowledge.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * @author zzz
 * @create 2022-02-10 15:55
 */
@Data
public class Article {

    public static final int ARTICLE_TOP = 1;

    public static final int ARTICLE_COMMON = 0;

    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private Long id;

    private String title;

    private String summary;

    private Integer commentCounts;

    private Integer viewCounts;

    /**
     * 作者id
     */
    private Long authorId;
    /**
     * 内容id
     */
    private Long bodyId;
    /**
     *类别id
     */
    private Long categoryId;

    /**
     * 置顶
     */
    private Integer weight;


    /**
     * 创建时间
     */
    private Long createDate;

    private Integer deleted;
}

